import {commGet, commPost} from "@utils/service/index.js";

// 获取验证码
export function handleChangeCheckCodeApi(time) {
    return commGet({
        url: `/sys/randomImage/${time}`,
        method: 'get',
    })
}
// 登录
export function login(data) {
    return commPost({
        url: '/sys/login',
        method: 'post',
        data,
    })
}
export function validateLogin(data) {
    return commGet({
        url: `/sys/cas/client/validateLogin`,
        method: 'get',
        data
    })
}
export function Logout(data) {
    return commGet({
        url: `/sys/logout`,
        method: 'get',
        data
    })
}
